package com.macw.ww_blog.controller;


import com.macw.ww_system.entity.CmsArticle;
import com.macw.ww_system.service.ICmsArticleService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 文章 前端控制器
 * </p>
 *
 * @author Macw
 * @since 2020-01-03
 */
@RestController
@RequestMapping("/cms-article")
public class CmsArticleController {

    @Resource
    private ICmsArticleService iCmsArticleService;

    @RequestMapping("/test")
    public void test(){
        System.out.println("=================");
        CmsArticle list = iCmsArticleService.getById("2019111809345847875233");
        System.out.println(list);
    }

}
